package bean;

import java.io.Serializable;
import java.util.List;

public class SingleQuestionBean implements Serializable {


    /**
     * 共用字段
     * question_id : 256
     * textbook_chapter_id : 1
     * question_content : 下列词语中加点的字的读音，完全相同的一组是
     * question_options : [{"idx":"A","text":"帖tiē妥帖 请帖 字帖 服帖"},{"idx":"B","text":"畜xù畜产 畜牧 畜养 牲畜"},{"idx":"C","text":"创chuàng草创 创伤 首创创造"},{"idx":"D","text":"乘chéng乘便 乘客 乘兴 乘势"}]
     * type_name : 单选题
     * difficulty : 3
     * use_num : 0
     */

    private int question_id;
    private String textbook_chapter_id;//多选，用,分割
    private String lore_id;//多选，用,分割  知识点和章节二选一
    private String question_content;
    private String type_name;
    private int difficulty;
    private int use_num;
    private List<QuestionOptionsBean> question_options;

    private String score;
    private boolean isChecked;


    /**
     * 习题相关字段
     * teacher_id : 12
     * type_id : 1 单选   2 多选题   3 判断题   4 填空题   5 解答题   6 实验题 7 作文题
     * real_name : 哈哈
     * laud_num : 1
     * share : 2
     * create_time : 2018-08-10 16:29:32
     * difficulty_name : 基础题
     */
    private int teacher_id;
    private int type_id;
    private String real_name;
    private int laud_num;
    private int share;
    private String create_time;
    private String difficulty_name;

    /**
     * 答题卡组卷和批改时使用
     */
    private String analysis;
    private List<String> choice_answer;


    public SingleQuestionBean(int type_id, String type_name) {
        this.type_name = type_name;
        this.type_id = type_id;
    }

    public List<String> getChoice_answer() {
        return choice_answer;
    }

    public void setChoice_answer(List<String> choice_answer) {
        this.choice_answer = choice_answer;
    }

    public String getAnalysis() {
        return analysis;
    }

    public void setAnalysis(String analysis) {
        this.analysis = analysis;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getLore_id() {
        return lore_id;
    }

    public void setLore_id(String lore_id) {
        this.lore_id = lore_id;
    }

    public int getTeacher_id() {
        return teacher_id;
    }

    public void setTeacher_id(int teacher_id) {
        this.teacher_id = teacher_id;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public int getLaud_num() {
        return laud_num;
    }

    public void setLaud_num(int laud_num) {
        this.laud_num = laud_num;
    }

    public int getShare() {
        return share;
    }

    public void setShare(int share) {
        this.share = share;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getDifficulty_name() {
        return difficulty_name;
    }

    public void setDifficulty_name(String difficulty_name) {
        this.difficulty_name = difficulty_name;
    }

    public int getQuestion_id() {
        return question_id;
    }

    public void setQuestion_id(int question_id) {
        this.question_id = question_id;
    }

    public String getTextbook_chapter_id() {
        return textbook_chapter_id;
    }

    public void setTextbook_chapter_id(String textbook_chapter_id) {
        this.textbook_chapter_id = textbook_chapter_id;
    }

    public String getQuestion_content() {
        return question_content;
    }

    public void setQuestion_content(String question_content) {
        this.question_content = question_content;
    }

    public String getType_name() {
        return type_name;
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
    }

    public int getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(int difficulty) {
        this.difficulty = difficulty;
    }

    public int getUse_num() {
        return use_num;
    }

    public void setUse_num(int use_num) {
        this.use_num = use_num;
    }

    public List<QuestionOptionsBean> getQuestion_options() {
        return question_options;
    }

    public void setQuestion_options(List<QuestionOptionsBean> question_options) {
        this.question_options = question_options;
    }

    public static class QuestionOptionsBean implements Serializable {
        @Override
        public String toString() {
            return "QuestionOptionsBean{" +
                    "idx='" + idx + '\'' +
                    ", text='" + text + '\'' +
                    '}';
        }

        /**
         * idx : A
         * text : 帖tiē妥帖 请帖 字帖 服帖
         */

        private String idx;
        private String text;

        public QuestionOptionsBean(String text) {
            this.text = text;
        }

        public String getIdx() {
            return idx;
        }

        public void setIdx(String idx) {
            this.idx = idx;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }
}
